package com.gsnd.briuppts.exception;

import com.gsnd.briuppts.Result.ResponseCode;
import lombok.Getter;

@Getter
public class PtsException extends RuntimeException{
    ResponseCode responseCode;
    public PtsException(){
        this("出现了一个不重要的小异常");
    }
    public PtsException(String msg){
        super(msg);
    }
    public PtsException(ResponseCode responseCode){
        super(responseCode.getCode()+"-"
                +responseCode.name()+":"
                +responseCode.getStatus());
        this.responseCode=responseCode;
    }
}
